package com.yunshang.ys.utils;

import android.app.Activity;
import android.content.res.Resources;
import android.util.Log;

/**
 * Created by Administrator on 2017/6/21.
 */

public class zzUtils {

    public static int getStatusBarHeight(Activity mActivity) {
        Resources resources = mActivity.getResources();
        int resourceId = resources.getIdentifier("status_bar_height", "dimen","android");
        int height = resources.getDimensionPixelSize(resourceId);
        Log.v("dbw", "Status height:" + height);
        return height;
    }
}
